package icu.xuyijie.mysecondspringboot.entity;

import jakarta.validation.constraints.Email;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * @author 徐一杰
 * @date 2024/12/13 14:12
 * @description
 */
@Data
public class Test {
    @Range(min = 0, max = 100, message = "年龄非法")
    private String age;

    @Email(message = "邮箱格式不正确")
    private String email;
}
